package cn.gogoyc.org.mapper;

import cn.gogoyc.org.domain.Shop;
import cn.gogoyc.org.basic.mapper.BaseMapper;
import cn.gogoyc.org.basic.dto.ShopDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺Mapper接口
 * @author Yang
 * @since 2023 -02-04
 */
@Mapper
public interface ShopMapper extends BaseMapper<Shop> {

    Shop findByNameAndAddress(Shop shop);

    void updateState(@Param("state") Integer state, @Param("shopId")Long shopId);

    List<ShopDto> getNumAndState();
}
